let totalGems = randomNumberOfGems
var gemCounter = 0

while gemCounter != totalGems {
    if isOnGem {
        collectGem()
        gemCounter += 1
    }
    
    moveForward()
    
    if isBlocked && isBlockedLeft {
        turnRight()
    }
    
    if isBlocked && isBlockedRight {
        turnLeft()
    }
    
    if isBlocked && isBlockedLeft && isBlockedRight {
        turnLeft()
        turnLeft()
    }
} 
